from rest_framework.pagination import PageNumberPagination


class StandardResultsSetPagination(PageNumberPagination):
    """设置分页查询"""
    #  设置分页查询页数
    page_size = 2
    #  设置分页查询的关键字
    page_size_query_param = 'page_size'
    #  设置最大分页查询数
    max_page_size = 20

from rest_framework.pagination import PageNumberPagination
